﻿/*============================================================================
	TASK 8:                                              {Console InputOutput}
	Write a program that reads an integer number n from the console
    and prints all the numbers in the interval [1..n], each on a single line.    
============================================================================*/

using System;

class ReadNAndPrint1toN
{
    static void Main()
    {
        int n;
       
        Console.Write("Enter n=");
        while (!int.TryParse(Console.ReadLine(), out n))
            Console.Write("Invalid number try again\nn=");
                  
        for (int i = 1; i <= n; i++)
          {
              Console.WriteLine(i);
          }
    }
}

